|
===================================== 〔語彙分解〕的な部分一致の検索結果は以下の通りです。 ・ ジュール : [じゅーる] 【名詞】 1. joule 2. (n) joule ・ ー : [ちょうおん] (n) long vowel mark (usually only used in katakana)
-- -- This module detects whether the first positional parameter is a valid ISO 639-1 language code. -- If it is, it returns the code. If not, it returns an error and a tracking category. For blank -- or non-string input, the returns a blank string. The tracking category is sorted by the language -- code, rather than by the page name. -- -- ----------------------------------------------------------------------------- -- Configuration -- -- Values that vary between languages are stored here, to enable easy -- porting between wikis. ----------------------------------------------------------------------------- -- local cfg = -- Error message on receiving invalid input. %s is the input passed to the module, and should be included in the message exactly once. cfg.errorMessage = 'Error: invalid input "%s"; please use an ISO 639-1 code' cfg.errorClass = 'error' -- The CSS class used in error messages on the local wiki. cfg.errorCategory = 'Pages with invalid ISO 639-1 language codes' -- The name of the error category to display. -- ----------------------------------------------------------------------------- -- End configuration ----------------------------------------------------------------------------- -- -- Define constants. local categoryNsText = mw.site.namespaces.name local currentLanguageCode = mw.language.getContentLanguage():getCode() -- Load dependent modules. local getArgs = require('Module:Arguments').getArgs local yesno = require('Module:Yesno') local p = local codes = function p.main(frame) 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「モジュール:Check ISO 639-1」の詳細全文を読む スポンサード リンク
|